package com.sss.hloster0307;

public class Shape {// 图形类
//属性
	private int area;// 面级
	private int per;// 周长
	private  char color;// 颜色
	// 构造方法

	public Shape() {// 默认构造方法
		super();
	}

	public Shape(char color) {
		super();
		this.color = color;
	}

	// 抽象方法
	public  void getArea() {

	}

	public  void getPer() {

	}

	public  void showAll() {
		getArea();
		getPer();
	}

	// setter/getter

	public void setArea(int area) {
		this.area = area;
	}

	public void setPer(int per) {
		this.per = per;
	}

	public char getColor() {
		return color;
	}

	public void setColor(char color) {
		this.color = color;
	}

}
